how to increment with out using a for loop python programming